/*
 * @Author: CodeHare
 * @Date: 2023-09-20 18:09:21
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2024-01-19 17:56:32
 * @Description: 
 */
import 'package:get/get.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:yt_devops/components/gaps.dart';
import 'package:yt_devops/resources/str_res_keys.dart';

class ListTips {
  String? noDataText;

  /// 表头提示语
  static ClassicHeader classicHeader = ClassicHeader(
    idleText: ResKey.pullToRefresh.tr,
    releaseText: ResKey.releaseRefresh.tr,
    completeText: ResKey.refreshCompleted.tr,
    refreshingText: ResKey.loading.tr,
    failedText: ResKey.refreshFailed.tr,
  );
  /// 表底提示语
  static ClassicFooter generateClassicFooter =
    ClassicFooter(
      idleText: ResKey.pullUpToLoadMore.tr,
      canLoadingText: ResKey.releaseToLoadMore.tr,
      loadingText: ResKey.pullUploading.tr,
      noDataText: '',
      failedIcon: Gaps.empty,
      failedText: ResKey.pullUploadingFail.tr,
    );


  static resetRefresh( ){
    classicHeader = ClassicHeader(
      idleText: ResKey.pullToRefresh.tr,
      releaseText: ResKey.releaseRefresh.tr,
      completeText: ResKey.refreshCompleted.tr,
      refreshingText: ResKey.loading.tr,
      failedText: ResKey.refreshFailed.tr,
    );
    generateClassicFooter =  ClassicFooter(
      idleText: ResKey.pullUpToLoadMore.tr,
      canLoadingText: ResKey.releaseToLoadMore.tr,
      loadingText: ResKey.pullUploading.tr,
      noDataText: '',
      failedIcon: Gaps.empty,
      failedText: ResKey.pullUploadingFail.tr,
    );
  }


}
